using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace wow_backtiupCore
{
    public  static class Program
    {
        static TheDarkOwlLogger.TheDarkOwlLogger Bugger = new TheDarkOwlLogger.TheDarkOwlLogger(false, true, true, Application.ProductName);

        /// <summary>
        /// The bug reporting method
        /// </summary>
        /// <param name="e">exception to be reported</param>
        public static void Bugtracking(Exception e)
        {
            //ScrablerCore core = new ScrablerCore();
            Exception test = new Exception("System.NullReferenceException: Object reference not set to an instance of an object.\nat Scrabler.ScrablerCore.Eval(String sCSCode, String scriptname, String NameSapce, String Clas, String func, String[] refs, WareForm winGUI)");
            //   DataException;
            System.IO.FileNotFoundException ioerrex = new System.IO.FileNotFoundException();

            if (e.GetType()== ioerrex.GetType())
            {

                MessageBox.Show(e.Message );
            }

            else
            {

                Bugger.TakeTheException2XmlLog(e, "wow backtiupCore", Kernel.GetVersion());
               // Bugger.TakeTheException2(e, "wow backtiupCore", Kernel.GetVersion(), true, true);
            }

        }
    }
}